package com.he.heblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 余生
 * @since 2023-04-08
 */
public class Notification implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发送者
     */
    @TableField("from_id")
    private Integer fromId;

    /**
     * 接收者
     */
    @TableField("to_id")
    private Integer toId;

    /**
     * 0：系统通知，1：评论，2：点赞 ，3：新增粉丝，4：私信
     */
    @TableField("`subject`")
    private Integer subject;

    /**
     * 是否已读,1:已读，0：未读	
     */
    @TableField("`status`")
    private Integer status;

    /**
     * 标题	
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 时间
     */
    @TableField("`time`")
    private LocalDateTime time;

    /**
     * 点赞的文章id
     */
    @TableField("topic_id")

    private Integer topicId;

    /**
     * 点赞的评论id
     */
    @TableField("comment_id")
    private Integer commentId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getFromId() {
        return fromId;
    }

    public void setFromId(Integer fromId) {
        this.fromId = fromId;
    }
    public Integer getToId() {
        return toId;
    }

    public void setToId(Integer toId) {
        this.toId = toId;
    }
    public Integer getSubject() {
        return subject;
    }

    public void setSubject(Integer subject) {
        this.subject = subject;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }
    public Integer getTopicId() {
        return topicId;
    }

    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }
    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    @Override
    public String toString() {
        return "Notification{" +
            "id=" + id +
            ", fromId=" + fromId +
            ", toId=" + toId +
            ", subject=" + subject +
            ", status=" + status +
            ", title=" + title +
            ", content=" + content +
            ", time=" + time +
            ", topicId=" + topicId +
            ", commentId=" + commentId +
        "}";
    }
}
